<h2>Mitarbeiter-Verf&uuml;gbarkeits-Report</h2>
<b>KW: <?php echo "$this->week" ?></b>
<b>Jahr: <?php echo "$this->year" ?></b>

<?php $tmpId = "";?>
<hr />
<table border="1">
    <tr>
	<th>Mitarbeiter</th>
	<th>Verf&uuml;gbarkeitszeiten</th>
	<th></th>
    </tr>
    <?php foreach ($this->result as $value ) : ?>
	<tr>
	    <td><?php if($tmpId != $value['id']){echo $value['vname'] . " " . $value['name'] . ":";} ?></td>
	    <td><?php echo date("d.m.Y H:i", strtotime($value['from'])); ?></td>
	    <td><?php echo date("d.m.Y H:i", strtotime($value['to'])); $tmpId = $value['id']; ?></td>
	</tr>
    <?php endforeach; ?>
</table>